package com.jsh.dao;


import com.jsh.pojo.Admin;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminMapper {
    Admin findByNameAndPassword(@Param("name") String name, @Param("password") String password);//按照姓名和秘密查询

    int deleteByPrimaryKey(Integer id);//根据id删除用户

    int insert(Admin record);//插入用户

    Admin selectByPrimaryKey(Integer id);//根据id查询

    List<Admin> selectAll();//查询所有用户

    int updateByPrimaryKey(Admin record);//修改用户
}